package com.swiftops.basic.sys.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 登录日志实体类
 * 根据需要删减无效参数
 *
 * @author yangyang
 * @date 2023/09/17
 **/
@Data
@Table(name = "sys_login_log")
public class SysLoginLog {

    /**
     * 主键
     */
    @Id
    @Column(name = "ID")
    private String id;

    /**
     * 用户ID
     */
    @Column(name = "USER_ID")
    private String userId;

    /**
     * 用户名
     */
    @Column(name = "USERNAME")
    private String username;

    /**
     * 密码
     */
    @Column(name = "PASSWORD")
    private String password;

    /**
     * 登录时间
     */
    @Column(name = "LOGIN_TIME")
    private Date loginTime;

    /**
     * IP地址
     */
    @Column(name = "IP_ADDRESS")
    private String ipAddress;

    /**
     * 状态
     */
    @Column(name = "STATUS")
    private String status;

    /**
     * 创建人
     */
    @Column(name = "CREATED_BY")
    private String createdBy;

    /**
     * 创建时间
     */
    @Column(name = "CREATED_AT")
    private Date createdAt;
}
